package net.osweb.core.tools.utils.crm.jms;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.ObjectMessage;
import javax.jms.Session;

import org.springframework.jms.support.converter.MessageConversionException;
import org.springframework.jms.support.converter.MessageConverter;

/**
 * 通知消息转换
 * @author SunQuanQuan
 *
 */
public class NotifyConverter implements MessageConverter{

	public Object fromMessage(Message message) throws JMSException,
			MessageConversionException {

		return null;
	}

	public Message toMessage(Object obj, Session session) throws JMSException,
			MessageConversionException {
		ObjectMessage objMsg = session.createObjectMessage();  
		
		return objMsg;
	}
	
}
